package com.l.web.master.system.webnode;

import org.bson.Document;
import org.l.qiao.AbstractCollectionDAO;
import org.springframework.stereotype.Repository;

@Repository
public class WebNodeDAO extends AbstractCollectionDAO {

    public static final String COLLECTION = "c_webNode";

    public WebNodeDAO() {
        super(COLLECTION);
    }

    public void deleteChannel(String id) {
        String cmd = "deleteChannel('" + id + "')";
        Document document = new Document(cmd, 1);
        document = this.getNosql().getDatabase().runCommand(document);
        System.out.println(document.toJson());
    }
}
